package com.saturn.titan.core.bean;
import java.util.Date;

import com.saturn.titan.core.bean.base.DatabaseBean;
import com.saturn.titan.core.repository.mybatis.annotations.DbField;
import com.saturn.titan.core.repository.mybatis.annotations.DbTable;

/**
 * 节点信息
 * @author lwh
 * @version V 1.0
 */
@DbTable(table = "node")
public class Node extends DatabaseBean{

	private static final long serialVersionUID = 1L;

	@DbField(type = String.class)
	private String name;

	@DbField(type = String.class)
	private String ip;

	@DbField(type = Integer.class)
	private Integer crawlerWeight;

	@DbField(type = String.class)
	private String crawlerType;

	@DbField(type = Integer.class)
	private Integer isNewsSnapshot;

	@DbField(type = Integer.class)
	private Integer isMetaSearcherSnapshot;

	@DbField(type = String.class)
	private String snapPath;

	@DbField(type = Integer.class)
	private Integer isDownLoadPlugin;

	@DbField(type = Integer.class)
	private Integer isValid;

	@DbField(type = Date.class)
	private Date updateTime;

	@DbField(type = Date.class)
	private Date createTime;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Integer getCrawlerWeight() {
		return crawlerWeight;
	}

	public void setCrawlerWeight(Integer crawlerWeight) {
		this.crawlerWeight = crawlerWeight;
	}

	public String getCrawlerType() {
		return crawlerType;
	}

	public void setCrawlerType(String crawlerType) {
		this.crawlerType = crawlerType;
	}

	public Integer getIsNewsSnapshot() {
		return isNewsSnapshot;
	}

	public void setIsNewsSnapshot(Integer isNewsSnapshot) {
		this.isNewsSnapshot = isNewsSnapshot;
	}

	public Integer getIsMetaSearcherSnapshot() {
		return isMetaSearcherSnapshot;
	}

	public void setIsMetaSearcherSnapshot(Integer isMetaSearcherSnapshot) {
		this.isMetaSearcherSnapshot = isMetaSearcherSnapshot;
	}

	public String getSnapPath() {
		return snapPath;
	}

	public void setSnapPath(String snapPath) {
		this.snapPath = snapPath;
	}

	public Integer getIsDownLoadPlugin() {
		return isDownLoadPlugin;
	}

	public void setIsDownLoadPlugin(Integer isDownLoadPlugin) {
		this.isDownLoadPlugin = isDownLoadPlugin;
	}

	public Integer getIsValid() {
		return isValid;
	}

	public void setIsValid(Integer isValid) {
		this.isValid = isValid;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}
